package com.cz.nongyetongv5.bean;

import java.io.Serializable;

public class Duixiangleixing  implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer id = null;
	private String name;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Duixiangleixing(Integer id, String name) {
		this.id = id;
		this.name = name;
	}

	public Duixiangleixing() {
	}

	

	
	@Override
	public boolean equals(Object o) {
		
		if (o != null){
			
			if (o instanceof Duixiangleixing){
				
				Duixiangleixing mjianChaNeiRong = (Duixiangleixing) o ;
				
				return this.name.equals(mjianChaNeiRong.getName());
				
			}else{
				return false ;
			}
			
		}else{
			return false;
		}
	}

}
